
#ifndef __EEROM24C32_H_
#define __EEROM24C32_H_

#include "driver/i2c.h"

#define EEROM24C32_I2C_CHANNEL  I2C_NUM_0
#define EEROM24C32_MASTER_SCL_IO  (19)
#define EEROM24C32_MASTER_SDA_IO  (18)
#define EEROM24C32_FREQ_HZ   (100000) // default setting 100Hhz
#define EEROM24C32_ADDR 0x50   //7 bit address

esp_err_t eerom24c32_i2c_master_init(void);
esp_err_t eerom24c32_read_data(uint16_t addr,uint8_t *data,uint16_t size);
esp_err_t eerom24c32_write_data(uint16_t addr,uint8_t *data,uint16_t size);
#endif
